package com.example.vote.mapper;

import com.example.vote.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 投票系统-用户表-4 Mapper 接口
 * </p>
 *
 * @author baomidou
 * @since 2024-04-14
 */
public interface UserMapper extends BaseMapper<User> {


    @Select("select id from tp_user where uname = #{uname}  ")
    int selectByid(String uname);

    @Update("update tp_user set email = #{email}, telephone = #{telephone}, avator = #{avator} where id = #{id} ")
    int upuser(String email, String telephone, String avator, int id);

}
